<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends MY_Controller {
	
	function __construct()
	{
		parent::__construct();
		$this->load->library('googlemaps');
		$config = array('center'=>"51.217678, 4.416371",'zoom'=>16,'map_height'=>'450','map_type'=>'ROADMAP','scrollwheel'=> false);

		$marker = array();
		$marker['position'] = "51.215478, 4.415171";
		$marker['title'] = "Chinees Massage 15";
		$marker['icon'] = base_url('../resources/frontpage/imgs/gmapMaker.png');
		$marker['infowindow_content'] = "Chinees Massage 15 | Antwerpen";
		
		$marker2 = array();
		$marker2['position'] = "51.218647, 4.419464";
		$marker2['title'] = "Chinees Massage 15";
		$marker2['icon'] = base_url('../resources/frontpage/imgs/gmapMaker2.png');
		$marker2['infowindow_content'] = "Chinees Massage 15 | Antwerpen";
		
		$marker3 = array();
		$marker3['position'] = "51.216902, 4.416400";
		$marker3['title'] = "Chinees Massage 17";
		$marker3['icon'] = base_url('../resources/frontpage/imgs/gmapMaker3.png');
		$marker3['infowindow_content'] = "Chinees Massage 17 | Antwerpen";
		
		$this->googlemaps->initialize($config);
		$this->googlemaps->add_marker($marker);
		$this->googlemaps->add_marker($marker2);
		$this->googlemaps->add_marker($marker3);
	}
	
	public function index()
	{
		$data['map'] = $this->googlemaps->create_map();
		$data['title'] = $this->title('home');
		$this->load->view($this->theme.'/header',$data);
		$this->load->view($this->theme.'/welcome_message');
		$this->load->view($this->theme.'/footer');
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */